<template>

   <div>
       <p v-for='i in li' :key="i.id">{{i.name}}--{{i.price}}<img :src="'http://127.0.0.1:8000'+i.img" style="height:50px;width:50px;"></p>
   </div>

</template>

<script>
import Axios from 'axios'
export default {
   data(){
       return {
           li:[],
           id:this.$route.query.id
       }
   },
   methods:{

   },
   created(){
       Axios.get('http://127.0.0.1:8000/che/che?id='+this.id).then(resp=>{
           console.log(resp)
           this.li=resp.data
       })
   }
}
</script>

<style>

</style>